package com.wbl.tijianssm.controller;

import com.wbl.tijianssm.response.ApiRestResponse;
import com.wbl.tijianssm.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/doctor")
public class DoctorController {

    @Autowired
    DoctorService doctorService;

    @ResponseBody
    @GetMapping("/getAll")
    public ApiRestResponse getDoctorList(){
        return doctorService.getUserAll();
    }
}
